import { EasyuiMessager } from './koeasyuimessager';
import { EasyuiDialogs } from './kodialogs';
import { CONSTKEY } from '../utils';

export function use(ko:KnockoutStatic){
    ko.components.register(`${CONSTKEY.CompPrefix}messager`,{
        viewModel:EasyuiMessager,
        template: '<div></div>'
    });
    //dialogs
    ko.components.register(`${CONSTKEY.CompPrefix}dialogs`,{
        viewModel:EasyuiDialogs,
        template:EasyuiDialogs.getTemplate()
    }); 
}

export * from './easyuiGenerate';
export { getContextFor } from './EasyuiHelper';
export { getDependNameOfComponent } from './depends';